<?php

  require_once "lib/mysql.php";

  global $db;
  
  class db extends MySQL { }
    db::$host = "localhost";
    db::$user = "root";
    db::$pwd  = "258456";
    db::$db   = "cms";

  $db = new db();
  
  db::connect();
  echo db::$error;
  if ( db::ok() ) {
    db::q("SET NAMES `utf8`");
  }
?>
